package com.example.zhaojianxu.signin.car.http

import retrofit2.Call
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * create by @zhaojianxu on 2019/3/1
 */
interface CarApi{

    @POST("/CommonServer/carList")
    fun postQueryCar(): Call<MutableList<CarEntity>>

    @POST("/CommonServer/myCar")
    fun postQueryMyCar(@Query("uid") uid : Int): Call<MutableList<MyCarEntity>>

    @POST("/CommonServer/carLease")
    fun postLeaseCar(@Query("uid") uid : Int,@Query("cid") cid : Int): Call<String>

    @POST("/CommonServer/myCarDelete")
    fun postDeleteCar(@Query("mid") cid : Int): Call<String>
}